package com.fr.report.core;

import com.fr.base.xml.XMLPrintWriter;
import com.fr.base.xml.XMLReadable;
import com.fr.base.xml.XMLableReader;
import com.fr.report.cellElement.TableDataColumn;
import java.io.Serializable;

public class AnDSColumn
  implements XMLReadable, Serializable, Cloneable
{
  private String dsName;
  private TableDataColumn column;

  public String getDsName()
  {
    return this.dsName;
  }

  public void setDsName(String paramString)
  {
    this.dsName = paramString;
  }

  public TableDataColumn getColumn()
  {
    return this.column;
  }

  public void setColumn(TableDataColumn paramTableDataColumn)
  {
    this.column = paramTableDataColumn;
  }

  public String toString()
  {
    return this.dsName + "." + this.column;
  }

  public void writeXML(XMLPrintWriter paramXMLPrintWriter)
  {
    paramXMLPrintWriter.startTAG("AnDSColumn").attr("dsName", this.dsName);
    TableDataColumn.writeXML(paramXMLPrintWriter, this.column);
    paramXMLPrintWriter.end();
  }

  public void readXML(XMLableReader paramXMLableReader)
  {
    if (paramXMLableReader.isAttr())
    {
      String str;
      if ((str = paramXMLableReader.getAttr("dsName")) != null)
        setDsName(str);
    }
    this.column = TableDataColumn.readXML(paramXMLableReader);
  }
}